<form id="pagerForm" action="__URL__/communityNotPublished" method="post">
	<input type="hidden" name="pageNum" value="{$currentPage}" />
	<input type="hidden" name="numPerPage" value="{$pagesize}" /><!--每页显示多少条-->
	<input type="hidden" name="condition" value="{$a}"/>
	<input type="hidden" name="name" value="{$b}"/>
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" method="post" action="__APP__/Admin/Channel/communityNotPublished">
	<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						搜索：
							   <select name="condition">
									<option value="KeyWords">按关键词</option>
									<option value="CreateDate">发布时间</option>
									<option value="Title">文章标题</option>
									<option value="Author">发布人</option>
							   </select>
							   <input type="text" name="name" />
					</td>
					<td>
						<div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div>
					</td>
				</tr>
			</table>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__APP__/Admin/Channel/communityAdd" target="dialog" mask="true" height="510" width="700" title="添加学员信息"><span>增加新文章</span></a></li>
			<li class="line">line</li>
			<li><a class="add" href="__APP__/Admin/Channel/community" target="navTab" mask="true" height="480" title="添加学员信息"><span>所有文章</span></a></li>
			<li class="line">line</li>
			<li><a class="add" href="__APP__/Admin/Channel/communityIsPublished/IsPublished/1" target="navTab" mask="true" height="480" title="已发布文章"><span>已发布文章</span></a></li>
			<li class="line">line</li>
			<li><a class="add" href="__APP__/Admin/Channel/communityNotPublished/IsPublished/0" target="navTab" mask="true" height="480" title="未发布文章"><span>未发布文章</span></a></li>
			
		</ul>
	</div>
	<!--<php>echo 'Hello World!';</php>-->
	<table class="table" width="100%" layoutH="112">
		<thead>
		<tr>
			<th width="140" orderField="id"  class="<{$smarty.post.orderDirection}>" >文章标题</th>
			<th width="180" orderField="name"  class="<{$smarty.post.orderDirection}>" >作者</th>
			<th width="60">创建者</th>
			<th width="100" orderField="age"  class="<{$smarty.post.orderDirection}>" >编辑</th>
			<th width="100">删除</th>
			<th >发布</th>
		</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr>
				<td>{$vo.Title}</td>
				<td>{$vo.Author}</td>
				<td>{$vo.CreateUserName}</td>
				<td>
					<a href="__APP__/Admin/Channel/communityEdit/id/{$vo.id}" target="dialog" height="450">编辑</a>　　
					<a href="__APP__/Admin/Channel/communityView/id/{$vo.id}" target="dialog" height="450">预览</a>
				</td>
				<td>
					<a href="__APP__/Admin/Channel/communityDelete/id/{$vo.id}/navTabId/community" target="ajaxTodo">删除</a>
					
				</td>
				<td>
					<if condition="$vo.IsPublished eq 1">
					<a href="__APP__/Admin/Channel/communityPublish/id/{$vo.id}/IsPublished/{$vo.IsPublished}" target="ajaxTodo" rel='cancelint'>取消发布</a>
					<else />
					<a href="__APP__/Admin/Channel/communityPublish/id/{$vo.id}/IsPublished/{$vo.IsPublished}" target="ajaxTodo" rel='cancelint'>发布</a>
					</if>
				</td>
			</tr>
			</volist>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$pagesize}" currentPage="{$currentPage}"></div>
	</div>

</div>
